package com.dzl.micro.service;

import com.dzl.base.service.BaseService;
import com.dzl.brand.pojo.WelfareBrand;
import com.dzl.goods.pojo.query.WelfareGoodsPageQuery;
import com.dzl.goods.pojo.vo.WelfareGoodsClassifyVo;
import com.dzl.micro.pojo.WelfareMicroPage;
import com.dzl.micro.pojo.vo.WelfareMicroVo;
import com.dzl.micro.query.WelfareMicroPageQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 微页面表(WelfareMicroPage)表服务接口
 * @author ChenLong
 * @date 2021-07-30 11:10:53
 */
public interface WelfareMicroPageService extends BaseService<WelfareMicroPage> {

    /**
     * 获取微页面装修列表
     *
     * @author ChenLong
     * @date 2021-07-30 14:53:09
     * @param pageId 微页面Id
     * @param port 显示端口：1服务端 2小程序
     * @return com.dzl.decorate.pojo.vo.WelfareDecorateVo
     **/
    WelfareMicroVo getMicroPageByPageId(Integer pageId, Integer port);

    /**
     * 获取微页面下的分类
     * @author ChenLong
     * @date 2021-07-31 14:11:32
     * @param pageId 页面Id
     * @param enterpriseId  企业ID
     * @return java.util.List
     **/
    List<WelfareGoodsClassifyVo> getGoodsClassifyForMicro(Integer pageId,Integer enterpriseId);

    /**
     * 根据分类获取品牌
     * @param welfareGoodsQuery 商品表查询实体类
     * @return java.util.List
     * @author ChenLong
     * @since 2021-05-18 20:19:16
     **/
    List<WelfareBrand> getBrandsByClassifyForMicro(WelfareGoodsPageQuery welfareGoodsQuery);

    /**
     * 微页面管理列表
     * @date 2021/8/10 0010 14:31
     * @author wangjian
     * @param welfareMicroPageQuery 查询条件
     * @return java.util.List<com.dzl.micro.pojo.WelfareMicroPage>
     */
    PageInfo<WelfareMicroPage> getPageListData(WelfareMicroPageQuery welfareMicroPageQuery);

    /**
     * 保存微页面配置
     * @date 2021/8/12 0012 10:05
     * @author wangjian
     * @param welfareMicroVo 微页面信息
     * @param updaterName 修改人
     * @return java.lang.Integer
     */
    Integer saveMicroPage(WelfareMicroVo welfareMicroVo,String updaterName);
}
